﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (IsPostBack)
        {
            Label2.Text = "Es un postback";
        }
        else
            Label2.Text = "Es la primera solicitud";


    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        tdConsulta.Visible = true;
        tdAlta.Visible = false;
    }
    protected void Button2_Click(object sender, EventArgs e)
    {
        tdConsulta.Visible = false;
        tdAlta.Visible = true;

    }
    protected void TextBox1_TextChanged(object sender, EventArgs e)
    {
        Label1.Text = "hubo un cambio";
    }
    protected void Button3_Click(object sender, EventArgs e)
    {

    }
}
